package com.xuecheng.content.service;

import com.xuecheng.content.model.dto.SaveTeachplanDto;
import com.xuecheng.content.model.dto.TeachplanDto;

import java.util.List;

/**
 * @author ybl
 * @date 2023/3/3 9:43
 * @description 课程基本信息管理业务接口
 * @since version-1.0
 */
public interface TeachplanService {
    /**
     * @author ybl
     * @date 2023/3/4 17:48
     * @description 课程计划查询接口
     * @param courseId 课程id
     * @return java.util.List<com.xuecheng.content.model.dto.TeachplanDto>
     * @since version-1.0
     */
    List<TeachplanDto> findTeachplayTree(Long courseId);

    /**
     * @author ybl
     * @date 2023/3/4 17:48
     * @description 课程计划新增，修改接口
     * @param teachplan 课程计划数据
     * @since version-1.0
     */
    void saveTeachplan(SaveTeachplanDto teachplan);

    /**
     * @author ybl
     * @date 2023/3/6 9:02
     * @description 课程计划删除接口
     * @param id 课程计划id
     * @since version-1.0
     */
    void deleteTeachplan(Long id);

    /**
     * @author ybl
     * @date 2023/3/6 11:37
     * @description 课程计划排序接口
     * @param move 移动类型
     * @param id 课程计划id
     * @since version-1.0
     */
    void moveTeachplan(String move, Long id);
}
